<!DOCTYPE html>
<html lang="en" xmlns:layout="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>
    <link rel="stylesheet" href="../authtree/layui/css/layui.css">
    <link rel="stylesheet" href="../css/public.css">
    <script src="../authtree/layui/layui.js"></script>
    <script src="../js/user/userInfo.js"></script>
</head>
<body style="background-color:#F7EED6">
<div class="layui-container">
    <div class="layui-row">
        <!-- 个人基本信息 -->
        <div class="layui-col-md6">
            <fieldset class="layui-elem-field">
                <legend>基本信息</legend>
                <div class="layui-field-box">
                    <form class="layui-form" action="">
                        <div class="layui-form-item">
                            <label class="layui-form-label">用户ID</label>
                            <div class="layui-input-block">
                                <input id="userId" type="text" name="userId" required lay-verify="required"
                                       class="layui-input" disabled/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">用户名</label>
                            <div class="layui-input-block">
                                <input id="userName" type="text" name="userId" required lay-verify="required"
                                       class="layui-input" disabled/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">Key</label>
                            <div class="layui-input-block">
                                <input id="accessKey" type="text" name="userId" required lay-verify="required"
                                       class="layui-input" disabled/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">Secret</label>
                            <div class="layui-input-inline">
                                <input id="accessSecret" type="text" name="userId" required lay-verify="required"
                                       class="layui-input" disabled/>
                            </div>
                            <button class="layui-btn layui-btn-primary" type="button" onclick="refreshAccessSecret()">
                                刷新
                            </button>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">signToken</label>
                            <div class="layui-input-inline">
                                <input id="signToken" type="text" name="userId" required lay-verify="required"
                                       class="layui-input" disabled/>
                            </div>
                            <button class="layui-btn layui-btn-primary" type="button" onclick="refreshSignToken()">刷新
                            </button>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">IP白名单</label>
                            <div class="layui-input-block">
                                <textarea  id="ips"  name="userId" required lay-verify="required"
                                           class="layui-textarea" placeholder="多个ip地址用','分隔 -> 比如192.168.1.1,192.168.1.2"></textarea>
                                <button class="layui-btn layui-btn-primary" type="button" onclick="updateIps()">确定</button>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">创建时间</label>
                            <div class="layui-input-block">
                                <input id="createTime" type="text" name="userId" required lay-verify="required"
                                       class="layui-input" disabled/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">修改时间</label>
                            <div class="layui-input-block">
                                <input id="modifyTime" type="text" name="userId" required lay-verify="required"
                                       class="layui-input" disabled/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">账号状态</label>
                            <div class="layui-input-block">
                                <input id="status" type="text" name="status" required lay-verify="required"
                                       class="layui-input" style="width:60px;" disabled/>
                            </div>
                            <!--<input id="status" type="text" name="userId" required  lay-verify="required"  class="layui-input" disabled />-->
                        </div>
                    </form>
                </div>
            </fieldset>
        </div>

        <!-- 权限树 -->
        <div class="layui-col-md6">
            <fieldset class="layui-elem-field">
                <legend>拥有权限</legend>
                <div class="layui-field-box">

                    <form class="layui-form">
                        <div class="layui-form-item">
                            <div class="layui-input-inline">
                                    <div class="layui-btn-group">
                                        <button class="layui-btn layui-btn-sm" type="submit" lay-submit
                                                lay-filter="LAY-auth-tree-submit">确定
                                        </button>
                                        <button class="layui-btn layui-btn-sm layui-btn-primary" type="reset">重置</button>
                                    </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <div id="LAY-auth-tree-index"></div>
                            </div>
                        </div>
                    </form>

                </div>
            </fieldset>
        </div>
    </div>

    <div style="height:20px"></div>
</div>
</body>
</html>